package dominio.xml.productsByCategories;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name="Product_Information")
@XmlAccessorType(XmlAccessType.FIELD)
public class XMLProductsInfo {
	
	@XmlAttribute(name="id")
	private Long id;
	
	@XmlElement (name="name")
	private String name;
	
	@XmlElement (name="price")
	private double price;
	
	@XmlElement (name="stock")
	private int stock;
	
	@XmlElement (name="description")
	private String description;
	
	public XMLProductsInfo() {}
	
	public XMLProductsInfo(Long id, String name, double price, int stock, String description){
		this.id = id;
		this.name = name;
		this.price = price;
		this.stock = stock;
		this.description = description;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public int getStock() {
		return stock;
	}

	public void setStock(int stock) {
		this.stock = stock;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
	
	
	

}
